<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<script src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script>
	<title></title>
</head>
<body>
 
  <script type="text/javascript">
  	$.ajax({
            url: "/users/getTest2?id=123",
            type: "get",
            dataType: "json",
            success: succesFunc,
            error: errorFunc
        });

        function succesFunc(resquest) {
            console.log(resquest);
            alert("成功");

        }

        function errorFunc(resquest) {
            console.log(resquest)
        }


  </script>
</body>
</html>